#include "debug.h"
#include "Utils\\SDLConfig.h"

NS_BEGIN(SDL)
NS_BEGIN(UTILS)

#pragma region CTOR & DTOR

SDLConfig::SDLConfig(Uint32 _sdlFlags, Uint32 _width, Uint32 _height,
					 Uint32 _videoFlags, std::string const& _title,
					 std::string const& _iconPath, std::string const& _envParams)
	: SDLFlags(_sdlFlags), Width(_width), Height(_height), VideoFlags(_videoFlags),
	  Title(_title), IconPath(_iconPath), EnvParams(_envParams)
{
	CTOR("SDLConfig", this);
}

SDLConfig::SDLConfig(SDLConfig const& _sdlConfig)
{
	CTOR("SDLConfig", this);
	*this = _sdlConfig;
}

SDLConfig::~SDLConfig()
{
	DTOR("SDLConfig", this);
}

#pragma endregion
#pragma region Operators

SDLConfig& SDLConfig::operator=(SDLConfig const& _sdlConfig)
{
	if (this != &_sdlConfig)
	{
		SDLFlags = _sdlConfig.SDLFlags;
		Width = _sdlConfig.Width;
		Height = _sdlConfig.Height;
		VideoFlags = _sdlConfig.VideoFlags;
		Title = _sdlConfig.Title;
		IconPath = _sdlConfig.IconPath;
		EnvParams = _sdlConfig.EnvParams;
	}
	return (*this);
}

#pragma endregion

NS_END(UTILS)
NS_END(SDL)